export default {
  state: {
    // 登录用户所拥有权限的全部菜单
    username: '',
    email:'',
  },
  // 监听state更新
  getters: {},
  // 操作state
  mutations: {
    getUserName (state, obj) {
      state.username = obj
    },
    getUserEmail(state,value){
      state.email = value;
    },

  },
  //state异步处理
  actions: {}
}
